#ifndef DELETEUSERWIDGET_H
#define DELETEUSERWIDGET_H

#include <QWidget>
#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QString>
#include <QMessageBox>
#include <QDebug>
#include <QFont>

#include "control/mycontrol.h"
#include "model/basemodel.h"
#include "model/usermodel.h"
#include "data/user.h"

class DeleteUserWidget : public QWidget
{
    Q_OBJECT
public:
    explicit DeleteUserWidget(QWidget *parent = nullptr);
    void init_Control();
    void init_Widget();
    void init_Connect();//初始化连接信号和槽

    int deleteUser();
private:
        QLineEdit *informationEt;
        QPushButton *returnBtn;
        QPushButton *confirmBtn;
        QLabel *informationLab;
        MyControl *control;
        BaseModel *model;
        QVBoxLayout *vLay;
        QHBoxLayout *btnhLay;
        QHBoxLayout *otherhLay;
        QFont font;
        User *user;

    signals:
        void returnManager();

    public slots:
         void on_retutrnBtn_cliked();
         void on_confirmBtn_cliked();

};

#endif // DELETEUSERWIDGET_H
